<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "insurance_benifit".
 *
 * @property integer $id
 * @property string $project_code
 * @property string $plan_code
 * @property string $plan_name
 * @property string $benifit_code
 * @property string $benifit_name
 * @property string $benifit_amount
 * @property string $benifit_currency
 */
class InsuranceBenifit extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'insurance_benifit';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['benifit_amount'], 'number'],
            [['project_code', 'plan_code', 'plan_name', 'benifit_code'], 'string', 'max' => 32],
            [['benifit_name'], 'string', 'max' => 255],
            [['benifit_currency'], 'string', 'max' => 3],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'project_code' => 'Project Code',
            'plan_code' => 'Plan Code',
            'plan_name' => 'Plan Name',
            'benifit_code' => 'Benifit Code',
            'benifit_name' => 'Benifit Name',
            'benifit_amount' => 'Benifit Amount',
            'benifit_currency' => 'Benifit Currency',
        ];
    }
}
